import Vue from 'vue'
import Router from 'vue-router'
import App from '../App'
import ParseColor from '@/components/parse_color'
import Home from '@/views/home'
import Item from '@/views/item'
import Score from '@/views/score'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      component: App,
      children: [{
        path: '/parse_color',
        name: 'parse_color',
        component: ParseColor
      }, {
        path: '',
        name: 'home',
        component: Home
      },
      {
        path: 'item',
        name: 'home',
        component: Item
      },
      {
        path: 'score',
        name: 'home',
        component: Score
      }]
    }
  ]
})
